package com.qqtop10.manager.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.qqtop10.manager.dao.IndustryCategoryMapper;
import com.qqtop10.manager.model.IndustryCategory;
import com.qqtop10.manager.model.PagingArgs;
import com.qqtop10.manager.service.IndustryCategoryService;

/**
 * 
 * @author Jovi
 *
 */
@Service("industryCategoryService")
public class IndustryCategoryServiceImpl extends BaseService implements IndustryCategoryService {

	@Autowired
	private IndustryCategoryMapper industryCategoryDao;

	@Override
	public int add(IndustryCategory industryCategory) {
		return industryCategoryDao.add(industryCategory);
	}

	@Override
	public List<IndustryCategory> all(IndustryCategory input, PagingArgs pagingArgs) {
		return industryCategoryDao.all(asMap(input, pagingArgs));
	}

	@Override
	public List<IndustryCategory> selectAll() {
		return industryCategoryDao.selectAll();
	}

	@Override
	public int count(IndustryCategory input) {
		return industryCategoryDao.count(input);
	}

	@Override
	public int delete(IndustryCategory industryCategory) {
		return industryCategoryDao.delete(industryCategory);
	}

}
